Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add snowflake support #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

dmitchell
Copy link

I'd really like access to the slack channel or to some other means to communicate w you re how to integrate snowflake; however, of course, I don't have a jetbrains email address and the slack channel requires one.

Before then, this is a trivial edit (fixing task name and formatting).

Problems I'm having w writing the new dialect

  • snowflake is always hosted in the cloud by snowflake (PAAS); so, cannot create a localhost docker container for it. Right now I have it creating an empty container. Any idea how to intelligently set this up?
  • snowflake does not support indexes (it's a column oriented db). Any suggestions how to properly encode?
  • snowflake does not have several types such as byte. Any suggestions how to integrate so that bytes cast to int?
  • snowflake does not support NOW() but does support CURRENT_TIMESTAMP(). afaict, there's no way to police that other than hardcoding the few places the current tests call NOW().

@Tapac
Copy link
Owner

Tapac commented Jun 29, 2020

@dmitchell , I had sent you the invitation for kotlinlang slack. Check your gmail for it.

@Tapac
Copy link
Owner

Tapac commented Jun 29, 2020

snowflake is always hosted in the cloud by snowflake (PAAS)....

Maybe it's possible to set up free/trial instance of Snowflake and use it in tests?

snowflake does not support indexes...

Just throw UnsupportedByDialectException from DatabaseDialect.create/dropIndex functions.

snowflake does not have several types such as byte.

Define the most suitable type (line integer) and check that corresponding ColumnType have conversion from/to it.

snowflake does not support NOW() but does support CURRENT_TIMESTAMP()

There is CurrentDateTime function which uses CURRENT_TIMESTAMP by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants